://download.elastic.co/kibana/kibana/kibana-4.1.1-linux-x64.tar.gz
Extract
tar zxf kibana-4.1.1-linux-x64.tar.gz -C /usr/local/cd /usr/local/mv kibana-4.1.1-linux-x64 kibana
Create a Startup File
Create a kibana. service file.
cat > /etc/systemd/system/kibana.service
Start the kibana Service
systemctl enable kibanasystemctl start kibanasystemctl status kibana
View port
# netstat -nltpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address St
Kibana is an open source analytics and visualization platform designed to work with Elasticsearch.
You use Kibana to search, view, and interact with the data stored in the Elasticsearch index.
You can easily perform advanced data analysis and visualize data in a variety of icons, tables, and maps.
Kibana makes it easy to understand large amounts of data. Its simple, browser-based interface enables you to quickly create and share dynamic dashboards that show real-time changes to Elasticsearch que
environment support, because the client is using the Filebeat software, it does not rely on the Java environment, so do not need to install
Second, Elk service-side Operation1. Installing JDK8 and Elasticsearch
RPM-IVH jdk-8u102-linux-x64.rpm
Yum Localinstall elasticsearch-2.3.3.rpm-y
Start the service
Service Elasticsearch Start
Chkconfig Elasticsearch on
Check Service
RPM-QC Elasticsearch
/etc/elasticsearch/elasticsearch.yml
/etc/elasticsearch/logging.yml
/etc/init.d/elasticsear
R11, we also expand:
Currently, most PCs are still 32-bit systems. Therefore, 32-bit integer data types are the fastest. Therefore, if the above amplification factor is obtained, the values on both sides of the formula must be Int. minvalue and Int. maxvalue, such as the upper formula,> the maximum value of the formula on the left side of the number is 10000 × 255 × 765, which is smaller than Int. the range that maxvalue can express, so the amplification factor is reasonable.
FOR R12 expansion
{
hosts =>" elasticsearch:9200 "#将logstash的输出到 Elasticsearch here to your own host
}
}
And then we need to start the Kibana.
Write a startup script to wait for Elasticserach to run successfully and start
#!/usr/bin/env Bash
# The Elasticsearch container to be ready before starting.
echo "Stalling for Elasticsearch" while
true; does
nc-q 1 elasticsearch 9200 2>/dev/null break
do Ne
echo "starting Kibana"
exec Kibana
Modify Dockerfile to generate a custom Kib
developed by the Nodejs itself, there is no security restrictions, directly browse the URL can be accessed, if the public network environment is very insecure, can be sent through Nginx request to increase authentication, the method is as follows:
Tips:kibana No restart command, to restart, can only ps-ef|grep node find Nodejs process, kill again.
1, refer to the following content, modify the configuration file:
server {
listen ;
server_name elk.yjmyzz.com;
Location/{
auth_basi
something more ambitious, you can run a Ubuntu container with: $ docker run-it Ubuntu bash Share images, automa Te workflows, and more with a free Docker Hub account:https://hub.docker.com for more examplesand ideas, visit:https://docs.docker.com/engine/userguide/
2.5. Install Docker-compose
To execute a command:
sudo curl-l https://github.com/docker/compose/releases/download/1.8.1/docker-compose-' uname-s '-' uname-m ' >/usr /local/bin/docker-compose
chmod +x/usr/local/bin/docker-compose
.
Line protocol current state: DOWNDescription: To beijingRoute Port, The Maximum Transmit Unit is 1500 Internet protocol processing: disabled
IP Sending Frames 'format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc7d-a497
The Vendor PN is HFBR-5710L
Port BW: 1G, Transceiver max BW: 1G, Transceiver Mode: MultiMode
WaveLength: 850nm, Transmission Distance: 550 m
Loopback: none, full-duplex mode, negotiation: disable, Pause Flowcontrol
Error: Message 5601, level 16, status 1, 1st rows. ALTERDATABASE fails because the lock cannot be placed on the database TestNonContainedDB. Please try again later. Message 5069, level 16, status 1, the first line of ALTERDATABASE statement failed. The corresponding English information is: Msg5061, Level16, State1, Line1ALTERDAT
Error: Message 5601, level 16, status 1, 1st rows. alter database fails becaus
Centos7 install ELK and centos7 install elk1. Overview
ELK Introduction ELK is short for Elasticsearch + Logstash + Kibana:Elasticsearch is a Lucene-based search server. It provides a distributed full-text search engine with multi-user capabilities, developed based on javaLogstash is a tool for receiving, processing, and forwarding logs.Kibana is a browser-based front-end Elasticsearch display tool. Kibana is all written in HTML and Javascript.
Operating system version
cat /etc/redhat-releas
/wKioL1d5CQjhZoJqAAAMRQWxsjk426.png-wh_500x0-wm_3 -wmp_4-s_678422780.png "style=" Float:none; "title=" 20.png "alt=" Wkiol1d5cqjhzojqaaamrqwxsjk426.png-wh_50 "/>The above are installed on the test2 above the installation KibanaRPM-IVH kibana-4.5.1-1.x86_64.rpmEdit the configuration file/opt/kibana/config/kibana.yml here, just modify the following items.#######################################################################################################server.port:
= "9300" accept "Firewall-cmd--reload
Iptables-l-N |grep 9200ACCEPT TCP--10.8.8.2 0.0.0.0/0 TCP dpt:9200 ctstate NEW
Installing KIBANA4 to display data in Elasticsearch
wget https://download.elastic.co/kibana/kibana/kibana-4.1.1-linux-x64.tar.gzTar zxvf kibana-4.1.1-linux-x64.tar.gzCD kibana-4.1.1-linux-x64Modify configuration fileVim/usr/local/kibana-4.1.1-linux-x64/config/kibana.yml# Kibana is served from a back end server. This is controls which port to use.port:
Installation Rpm-ivh elasticsearch-5.5.0.rpmConfigurationFind the installation directory Whereis elasticsearch//Enter the installation directory cd/etc/elasticsearch//edit the Profile VI elasticsearch.ymlMain configuration network.host (native IP) and http.port (default 9200) (current single-node mode, other parameters refer to official documentation)Start the serviceOpen port 9200firewall-cmd--add-port=9200/tcp--permanent//Reload configuration firewall-cmd--reload//Set service boot up systemct
properly.
The order is as follows:
# 1. Create log file
touch/tmp/test.log
# 2. Write a nginx access log to the log file
echo ' 127.0.0.1--[13/mar/2017:22:57:14 +0800] "get/http/1.1" 3700 "-" "mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) applewebkit/537.36 (khtml, like Gecko) chrome/46.0.2490.86 safari/537.36 ""-"' >>/tmp/test. Log
If it's normal, just a little while, and look inside the ip:9200/_search?pretty there should be a more log record we just added.
Six, Kibana configuration
server.elasticsearch.username"elastic"elasticsearch.password"changeme"by brew services start kibana starting itFirst boot, the default port number is 5601, open the browser access to the http://localhost:5601 Kibana Management page, the box will require the user name password input, enter elastic and 123456.Note: The user name password configured in KIBANA.YML here is Kibana access elasticsearch need to us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.